package cn.biplam.back.services.operatorexchange;

import cn.biplam.common.bean.sqlengine.Sql;
import cn.biplam.common.client.Database;
import cn.biplam.common.client.DbResource;
import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.common.wrapper.sqlresult.SqlResult;

/**
 * 数据操作交换表操作类
 * @author WangSong 2009-9-22下午06:12:21
 * @version 1.0
 */
public class OperatorServiceOpt {
	
	public SqlResult getById(String opId) throws ErrorMessage{
		Database db = new Database(new DbResource("RT"),null,null);
		StringBuilder sp = new StringBuilder();
		sp.append(" select t.s_id,t.s_name,t.s_class_path,t.s_type,t.publish ");
		sp.append("   from operator_service t                      ");
		sp.append("  where t.s_id = '"+opId+"'                     ");
		SqlResult sr = db.executeSelect(new Sql(sp.toString()));
		return sr;
	}
}
